<?php
/**
 * CreateTime: 2022/10/12 10:57
 */

namespace App\Http\Requests\Client;

use App\Http\Requests\BaseRequests;

class AddCreditClientYwPost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'department_id' => "required",
            'credit_client_order_code' => "required",
            'credit_client_property' => "required",
            'credit_client_shareholder_ratio' => "required",
            'credit_client_actual_controller' => "required",
            'credit_client_shareholder' => "required",
            'apply_staff_id' => "required",
            'staff_id' => "required"
        ];
    }

    public function messages()
    {
        return [
            'department_id.required' => "填表部门不能为空",
            'apply_staff_id.required' => "申请部门经办人不能为空",
            'staff_id.required' => "经办人不能为空",
            'credit_client_order_code.required' => "评价表编号不能为空",
            'credit_client_property.required' => "企业经济性质不能为空",
            'credit_client_shareholder_ratio.required' => "持股比例不能为空",
            'credit_client_actual_controller.required' => "实际控制人不能为空",
            'credit_client_shareholder.required' => "直接控股股东不能为空",
        ];
    }


}